import './App.css';
import {BrowserRouter,Route} from "react-router-dom";
//首先在根组件中引入一个provider的组件
import {Provider} from "react-redux";
//provider组件有一个必填项属性
//在src目录中创建一个redux的目录里面有store，reducer，action
// store代表仓库，action代表方法，
import {store} from "./redux/store";

//导入组件
import Home from "./pages/Home";
import List from "./pages/list";
function App() {
  return (
    <Provider store={store}>
        <BrowserRouter>
            <Route exact path={'/'} component={Home}/>
            <Route path={'/list'} component={List}/>
        </BrowserRouter>
    </Provider>
  );
}

export default App;
